﻿using System;
using System.Runtime.Serialization;

namespace LeonardoNews.Models
{
    [DataContract]
    public class Vote
    {
        [DataMember]
        public int ID { get; set; }

        [DataMember(EmitDefaultValue=false)]
        public int UserID { get; set; }

        [DataMember(EmitDefaultValue = false)]
        public virtual User User { get; set; }

        [DataMember(EmitDefaultValue = false)]
        public virtual Article Article { get; set; }

        [DataMember]
        public int State { get; set; }
    }
}
